﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchTeacherList.aspx.cs" Inherits="CourseListManagement_SearchTeacherList" %>
<%@ Import Namespace="VideoClassLibrary.Extension" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>教师列表</title>
    <link href="../Css/ys.css"rel="stylesheet" type="text/css" />
 <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
    <script type="text/javaScript" language="javascript">
        function SetSelectedTeacherId(sid,name) {
            opener.openModelWin(sid, name, "SearchTeacherList.aspx");
            window.close();
        }
    </script>
</head>
<body>
   <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
                教师列表</div>
        </div>
       
            <div id="search" class="search2">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">按教师名称查找</td>
    <td>
    <asp:TextBox ID="txtTeacherName" runat="server" MaxLength="20" CssClass="inp1"></asp:TextBox>
    </td>
    <td><asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="button" onclick="btnSearch_Click"/></td>
    </tr>
    </table></div>
    <br class="sp3px" />
     <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">选择教师</td>
    <td class="noWrapTD">教师真实姓名</td>
     <td class="noWrapTD">教师Email</td>
 <td class="noWrapTD">个人描述</td>

    </tr>
 
     <asp:Repeater ID="repTeacherList" runat="server">
    <ItemTemplate>
    <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
    <td class="ta2"><input id="btnAdd" type="button" class="button2" value="确定" onclick="SetSelectedTeacherId('<%#Eval("ID")%>','<%#Eval("VT_realname") %>');"/></td>
   <td class="ta2"><%#Eval("VT_realname") %></td>
    <td class="ta2"><%#Eval("VT_email") %></td>
    <td class="ta2"><a   title="<%#Eval("VT_desc") %>" > <%#StringUtils.getLimitLengthString(Eval("VT_desc").ToString(),80,"..") %></a></td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
   
    </table>
     <br class="sp3px" />
    <webdiyer:aspnetpager ID="pager" runat="server"
                onpagechanged="pager_PageChanged" CssClass="anpager" 
            CurrentPageButtonClass="cpb">
            </webdiyer:aspnetpager>
    </div>
    <asp:HiddenField ID="hidTeacherIdList" runat="server" Value=""/>
    </form>
</body>
</html>
